home *** CD-ROM | disk | FTP | other *** search
- -- background: 2707 from stack: in
- -- bmap block id: 11741
- -- flags: 4000
- -- background id: 0
- -- name:
-
-
- -- part 22 (field)
- -- low flags: 80
- -- high flags: 0002
- -- rect: left=67 top=303 right=321 bottom=354
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 0
- -- font id: 3
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: launch
-
-
- -- part 1 (field)
- -- low flags: 01
- -- high flags: 0000
- -- rect: left=48 top=106 right=235 bottom=314
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 0
- -- font id: 21
- -- text size: 18
- -- style flags: 0
- -- line height: 20
- -- part name: days
-
-
- -- part 2 (field)
- -- low flags: 01
- -- high flags: 0002
- -- rect: left=46 top=77 right=97 bottom=313
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 0
- -- font id: 3
- -- text size: 14
- -- style flags: 256
- -- line height: 18
- -- part name:
-
-
- -- part 4 (field)
- -- low flags: 01
- -- high flags: 0002
- -- rect: left=83 top=254 right=274 bottom=201
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: month
-
-
- -- part 5 (field)
- -- low flags: 01
- -- high flags: 0002
- -- rect: left=206 top=254 right=274 bottom=270
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: year
-
-
- -- part 8 (button)
- -- low flags: 00
- -- high flags: 0004
- -- rect: left=366 top=257 right=291 bottom=405
- -- title width / last selected line: 0
- -- icon id / first selected line: 20098 / 20098
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Home
- ----- HyperTalk script -----
- on mouseUp
- visual effect iris close
- go "Home"
- end mouseUp
-
-
-
- -- part 17 (field)
- -- low flags: 00
- -- high flags: 0002
- -- rect: left=328 top=104 right=119 bottom=407
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 0
- -- font id: 3
- -- text size: 9
- -- style flags: 0
- -- line height: 12
- -- part name: spclhedr
-
-
- -- part 18 (field)
- -- low flags: 00
- -- high flags: 0002
- -- rect: left=423 top=104 right=118 bottom=483
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 0
- -- font id: 3
- -- text size: 9
- -- style flags: 0
- -- line height: 12
- -- part name: bday
-
-
- -- part 19 (field)
- -- low flags: 80
- -- high flags: 0002
- -- rect: left=442 top=104 right=118 bottom=483
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 0
- -- font id: 3
- -- text size: 9
- -- style flags: 0
- -- line height: 12
- -- part name: evnt
-
-
- -- part 9 (field)
- -- low flags: 00
- -- high flags: 0007
- -- rect: left=328 top=115 right=166 bottom=499
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 0
- -- font id: 3
- -- text size: 9
- -- style flags: 0
- -- line height: 12
- -- part name: specials
-
-
- -- part 14 (field)
- -- low flags: 80
- -- high flags: 0000
- -- rect: left=84 top=307 right=324 bottom=387
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 0
- -- font id: 3
- -- text size: 10
- -- style flags: 0
- -- line height: 13
- -- part name: launch
-
-
- -- part 24 (button)
- -- low flags: 00
- -- high flags: 0004
- -- rect: left=280 top=250 right=279 bottom=315
- -- title width / last selected line: 0
- -- icon id / first selected line: 15972 / 15972
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Dates
- ----- HyperTalk script -----
- on mouseUp
- global cdholder
- put cdholder into oldcard
- -- The following ask boxes put the current month and year in them
- ask "Please enter month:" with word 2 of the long date
- put it into monthName
- if it is empty then exit mouseUp
- ask "Please enter the year:" with word 4 of the long date
- put it into yearName
- if it is empty then exit mouseUp
- repeat while it < 1821 or it > 2100
- ask "The year must be 1821 through 2100..." with yearName
- put it into yearName
- end repeat
- repeat -- Verifies a correct month name has been entered
- if monthName <> "January" then
- if monthName <> "February" then
- if monthName <> "March" then
- if monthName <> "April" then
- if monthName <> "May" then
- if monthName <> "June" then
- if monthName <> "July" then
- if monthName <> "August" then
- if monthName <> "September" then
- if monthName <> "October" then
- if monthName <> "November" then
- if monthName <> "December" then
- -- Obviously an incorrest month name
- ask "Please check name of month..." with monthName
- put it into monthName
- next repeat --Loops again to verify
- end if
- end if
- end if
- end if
- end if
- end if
- end if
- end if
- end if
- end if
- end if
- end if
- exit repeat
- end repeat
- lock screen
- go to card monthName of stack calendar
- repeat with theLine = 1 to 7 --Each line is a day of the week
- if yearName is in line theLine of card field monthName then
- put theLine into Count
- exit repeat
- end if
- end repeat
- if Count = 1 then go to card Sunday
- if Count = 2 then go to card Monday
- if Count = 3 then go to card Tuesday
- if Count = 4 then go to card Wednesday
- if Count = 5 then go to card Thursday
- if Count = 6 then go to card Friday
- if Count = 7 then go to card Saturday
- put the short name of this card into cdholder
- put field days into dayHold
- go to card display --The card you will see
- put dayHold into field days
- put monthName into field month
- put yearName into field year
- hide field specials
- hide field spclhedr
- hide field bday
- hide field evnt
- --The next 2 ifs check for months with less than 31 days
- if (monthName = "February") or (monthName = "April") or (monthName = "June") or (monthName = "September") or (monthName = "November") then
- delete word "31" of field days
- end if
- if monthName = "February" then
- delete word "30" of field days
- if yearName mod 4 <> 0 or yearName = 1900 then
- delete word "29" of field days
- end if
- end if
- push card
- go cd oldcard
- unlock screen
- visual dissolve slow
- pop card
- end mouseUp
-
-